# Contributor: Henrik Riomar <henrik.riomar@gmail.com>
# Maintainer: Henrik Riomar <henrik.riomar@gmail.com>
pkgname=py3-clickclick
_pkgname=python-clickclick
pkgver=20.10.2
pkgrel=2
pkgdesc="Click command line utilities"
url="https://codeberg.org/hjacobs/python-clickclick"
arch="noarch"
license="Apache-2.0"
#options="!check" # one failing test
checkdepends="
	py3-pytest
	py3-pytest-cov
	py3-toml
	"
makedepends="
	py3-flake8
	py3-setuptools
	"
depends="
	py3-click
	py3-yaml
	python3
	"
subpackages="$pkgname-pyc"
source="
	$pkgname-$pkgver.tar.gz::https://codeberg.org/hjacobs/$_pkgname/archive/$pkgver.tar.gz
	Remove-unused-six-from-setup_requires-1.patch
	fix-quoting-style-in-assert.patch
	"
builddir="$srcdir/$_pkgname"

build() {
	python3 setup.py build
}

check() {
	python3 setup.py test
}

package() {
	python3 setup.py install --skip-build --root="$pkgdir"
}

sha512sums="
d8954d231bff6945ac0e8350be05775a8a0b852dd0284e3446b3f9c8bc5861870ed1bc058e132c144fe8d543aee87d7a7a54894abdb4006664e5994c8cfb507f  py3-clickclick-20.10.2.tar.gz
b2a6c1517f0fe8c35d89c886340afb20f18f107328fd34271b1d56743fd194b0d2fce277036b689498173e65b13b51620d9ed8809d41c8b98004440af8c8fd73  Remove-unused-six-from-setup_requires-1.patch
977a63eb6210b3d9d65eabe11c0ef7ed68947147e4704909027547efda512472240affcc1ce0ebb381433bcecfbb325af91903093ca7add0496a9a63f9592f82  fix-quoting-style-in-assert.patch
"
